using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using ZoneFiveSoftware.Common.Data;
using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Data.GPS;
using BENBUN.Properties;
using BENBUN.Actions;

namespace BENBUN.Importers
{
    class ExtendImport : IExtendDataImporters
    {

        public void AfterImport(IList added, IList updated)
        {

                IList<IActivity> activities = new List<IActivity>();
                RegisterActivity WIW = new RegisterActivity();
                foreach (IActivity activity in added)
                {
                    activities.Add(activity);
                    ITimeValueEntry<IGPSPoint> GPSStartPoint = activity.GPSRoute[0];
                    WIW.startpoint = activity.GPSRoute[0];
                    WIW.poke();
                }

                
            

                Rectangle rectButton = new Rectangle(Screen.PrimaryScreen.WorkingArea.Width / 2, Screen.PrimaryScreen.WorkingArea.Height / 2, 1, 1);
                if (activities.Count > 0)
                {
                   // new AfterImportAction(activities).Run(rectButton);
                    
                }
        }

        public void BeforeImport(IList items)
        {
        }

        // Properties
        public IList<IFileImporter> FileImporters
        {
            get
            {
                return null;
            }
        }



    }
}
